package com.foreknow.service;

import com.foreknow.model.Business;
import com.foreknow.model.Guestbook;
import com.foreknow.util.Pagination;

import java.util.List;

public interface GuestbookService {
    /**
     * 添加留言
     * @param gb
     * @return
     */
    public boolean add(Guestbook gb);

    public List<Guestbook> getQueryAll();

    public boolean deleteById(int id);

    public int Update(Guestbook guestbook, int id);

    public Guestbook getQueryById(int id);

    /**
     * 分页
     * @param pageSize  每页现实的记录数
     * @param pageNumber    当前页码
     * @return  Pagination  接口
     */
    public Pagination getByPage(int pageSize,int pageNumber);
}
